package com.itheima.manager.entry;

import com.itheima.manager.contrller.SubwayController;

import java.util.Scanner;

public class SubwaysEntry {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        SubwayController con = new SubwayController();
        System.out.println("================欢迎您,来到北京地铁管理系统,请先登录================");
        con.login();
        while (true) {
            System.out.println("请输入您的选择\t1.进入地铁系统\t2.退出");
            int choice = sc.nextInt();
            switch (choice) {
                case 1:
                    con.start();
                    break;
                case 2:
                    System.out.println("感谢您的使用!");
                    System.exit(0);
                    break;
            }
        }
    }
}
